<fieldset id="filters">
  <legend><?php echo $this->lang->line('label.filters') ?></legend>
  <form accept-charset="utf-8" method="post" id="form_<?php echo $this->router->fetch_class()?>_search"
        action="<?php echo site_url('admin/'.$this->router->fetch_class() . '/search') ?>">
    <ul>
      <li>
        <label for="provider_id"><?php echo $this->lang->line('label.'.$this->router->fetch_class().'.provider_id') ?></label>				
        <select name="provider_id" class="chzn chzn-done" id="selMF9" style="visibility: visible">
          <option value="all" <?php echo isset($provider_id) && $provider_id== 'all' ? 'selected="selected"' : '' ?>><?php echo $this->lang->line('label.option.all') ?></option>
          <?php foreach($provider_users as $provider_user) { ?>
          <option value="<?php echo $provider_user['id']?>" <?php echo isset($provider_id) && $provider_id== $provider_user['id'] ? 'selected="selected"' : '' ?>><?php echo $this->provider_user_model->to_string($provider_user) ?></option>
          <?php } ?>
        </select>
      </li>
      <li>
        <label for="end_user_id"><?php echo $this->lang->line('label.'.$this->router->fetch_class().'.end_user_id') ?></label>				
        <select name="end_user_id" class="chzn chzn-done" id="selMF9" style="visibility: visible">
          <option value="all" <?php echo isset($end_user_id) && $end_user_id== 'all' ? 'selected="selected"' : '' ?>><?php echo $this->lang->line('label.option.all') ?></option>
          <?php foreach($end_users as $end_user) { ?>
          <option value="<?php echo $end_user['id']?>" <?php echo isset($end_user_id) && $end_user_id== $end_user['id'] ? 'selected="selected"' : '' ?>><?php echo $this->end_user_model->to_string($end_user) ?></option>
          <?php } ?>
        </select>
      </li>
      <li>
        <a class="cancel ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
           href="<?php echo site_url('admin/'.$this->router->fetch_class() . '/index/' . $max . '/' . $offset) ?>" role="button">
          <span class="ui-button-text"><?php echo $this->lang->line('btn.cancel') ?></span>
        </a>
        <a class="cancel ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" href="#" 
           role="button" onclick="$('#form_<?php echo $this->router->fetch_class()?>_search').submit();return false;">
          <span class="ui-button-text"><?php echo $this->lang->line('btn.filter') ?></span>
        </a>        
      </li>
    </ul>
  </form>
</fieldset>